package com.clear.honghefinance.biz.modules.assist_calculate.converter;

import com.clear.honghefinance.biz.modules.assist_calculate.domain.dto.CreateAssistCalculateCategoryDTO;
import com.clear.honghefinance.biz.modules.assist_calculate.domain.dto.UpdateAssistCalculateCategoryDTO;
import com.clear.honghefinance.biz.modules.assist_calculate.domain.entity.AssistCalculateCate;
import com.clear.honghefinance.biz.modules.assist_calculate.domain.vo.GetAssistCalculateCategoryDetailVO;
import com.clear.honghefinance.biz.modules.assist_calculate.domain.vo.ListAssistCalculateCategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface AssistCalculateCategoryConverter {

    AssistCalculateCategoryConverter INSTANCE = Mappers.getMapper(AssistCalculateCategoryConverter.class);

    AssistCalculateCate convertDTOToAssistCalculateCategoryEntity(CreateAssistCalculateCategoryDTO dto);

    AssistCalculateCate convertDTOToAssistCalculateCategoryEntity(UpdateAssistCalculateCategoryDTO dto);

    List<ListAssistCalculateCategoryVO> convertAssistCalculateCategoryEntityToListAssistCalculateCategoryVO(List<AssistCalculateCate> list);

    GetAssistCalculateCategoryDetailVO convertAssistCalculateCategoryEntityToGetAssistCalculateCategoryDetailVO(AssistCalculateCate entity);
}
